package com.epam.task.xml.classes;

/**
 * Created with IntelliJ IDEA.
 * User: zhunusbekova.arailym
 * Date: 12.09.13
 * Time: 11:34
 * To change this template use File | Settings | File Templates.
 */
public class Release {
    private String nameRelease;
    private Certificate certificate = new Certificate();
    private Package aPackage = new Package();
    private Dosage dosage = new Dosage();

    public Release(){

    }

    public Release(String nameRelease) {
        this.nameRelease = nameRelease;
    }

    public Release(String nameRelease, Certificate certificate, Package aPackage, Dosage dosage) {
        this.nameRelease = nameRelease;
        this.certificate = certificate;
        this.aPackage = aPackage;
        this.dosage = dosage;
    }

    public String getNameRelease() {
        return nameRelease;
    }

    public void setNameRelease(String nameRelease) {
        this.nameRelease = nameRelease;
    }

    public Certificate getCertificate() {
        return certificate;
    }

    public void setCertificate(Certificate certificate) {
        this.certificate = certificate;
    }

    public Package getAPackage() {
        return aPackage;
    }

    public void setAPackage(Package aPackage) {
        this.aPackage = aPackage;
    }

    public Dosage getDosage() {
        return dosage;
    }

    public void setDosage(Dosage dosage) {
        this.dosage = dosage;
    }

    public String toString() {
        return nameRelease + "\n\tcertificate: " + certificate.toString()
                + "\n\tpackage: " + aPackage.toString() + "\n\tdosage: " + dosage.toString();
    }
}
